<template>
  <!-- 消息页面 -- (李文宇) -->
  <div class="message">
    <!-- 消息 -->
    <header>
      <div class="newtop">消息中心</div>
      <van-grid :border="false" :column-num="3" class="topimg">
        <van-grid-item>
          <img src="../../assets/news/news-top-01.png" @click="lineServe" />
          <span>在线客服</span>
        </van-grid-item>
        <van-grid-item>
          <img src="../../assets/news/news-top-02.png" />
          <span>新房动态</span>
        </van-grid-item>
        <van-grid-item>
          <img src="../../assets/news/news-top-03.png" @click="inform" />
          <span>系统通知</span>
        </van-grid-item>
      </van-grid>
    </header>
    <!-- 消息内容 -->
    <main>
      <div class="messageCat">
        <div class="left">
          <img src="../../assets/news/news-01.png" alt="" />
          <div class="numList">1</div>
        </div>
        <div class="middle">
          <ul>
            <li>
              <div class="name">季海波</div>
              <div class="nameBale">巴乐兔管家</div>
              <div class="noWait">免佣</div>
            </li>
            <li>
              <div class="middleMsg">亲爱的兔宝您好🥕🥕🥕🥕🥕🥕</div>
            </li>
            <li>
              <div class="timeNow">14:25</div>
            </li>
          </ul>
        </div>
        <div class="right">
          <img src="../../assets/news/news-02.png" alt="" />
        </div>
      </div>
      <!-- 第二条写死 -->
      <div class="messageCat">
        <div class="left">
          <img src="../../assets/news/news-03.png" alt="" />
          <div class="numList">2</div>
        </div>
        <div class="middle">
          <ul>
            <li>
              <div class="name">梁朝龙</div>
              <div class="nameBale">巴乐兔管家</div>
              <div class="noWait">免佣</div>
            </li>
            <li>
              <div class="middleMsg">
                您也可以加下我的微信。🥕🥕🥕我发小长得又高又帅
              </div>
            </li>
            <li>
              <div class="timeNow">14:19</div>
            </li>
          </ul>
        </div>
        <div class="right"></div>
      </div>
    </main>
  </div>
</template>
<script>
export default {
  data() {
    return {
      list: [],
    };
  },
  //consult和message页的跳转事件
  methods: {
    lineServe() {
      this.$router.push("/consult");
    },
    inform() {
      this.$router.push("/message");
    },
  },
};
</script>
<style lang="less" scoped>
.message {
  background: #fff;
  .newtop {
    width: 100%;
    height: 46px;
    text-align: center;
    line-height: 46px;
    font-size: 17px;
    font-family: PingFang SC;
    font-weight: bold;
    color: #535353;
  }
  .topimg {
    img {
      width: 44px;
      margin-bottom: 7px;
      margin-top: 7px;
    }
    span {
      width: 77px;
      height: 16px;
      font-size: 17px;
      font-family: PingFang SC;
      font-weight: 500;
      color: #333333;
      text-align: center;
    }
  }
  main {
    .messageCat {
      height: 63px;
      margin: 20px 15px;
      .left {
        float: left;
        position: relative;
        img {
          width: 47px;
        }
        .numList {
          position: absolute;
          width: 13px;
          height: 13px;
          background: #f5304d;
          border-radius: 50%;
          left: 35px;
          top: 4px;
          text-align: center;
          line-height: 13px;
          color: #ccc;
          font-size: 12px;
        }
      }
      .middle {
        width: 200px;
        float: left;
        margin-left: 15px;
        li:nth-child(1) {
          display: block;
          margin-bottom: 6px;
          height: 24px;
          .name {
            float: left;
            height: 15px;
            font-size: 15px;
            font-family: PingFang SC;
            font-weight: bold;
            color: #333333;
            margin-right: 20px;
            margin-top: 3px;
          }
          .nameBale {
            float: left;
            height: 20px;
            font-size: 11px;
            font-family: PingFang SC;
            font-weight: bold;
            color: #d14f60;
            border: 1px solid #999;
            padding: 3px;
            border-top-left-radius: 2px;
            border-bottom-left-radius: 2px;
            margin-top: 3px;
          }
          .noWait {
            float: left;
            width: 36px;
            height: 20px;
            font-size: 11px;
            font-family: PingFang SC;
            font-weight: bold;
            color: #ffffff;
            background: #ff3f38;
            text-align: center;
            line-height: 20px;
            border-top-right-radius: 2px;
            border-bottom-right-radius: 2px;
            margin-top: 3px;
          }
        }
        .middleMsg {
          width: 200px;
          height: 14px;
          font-size: 14px;
          font-family: PingFang SC;
          font-weight: 500;
          color: #5e5e5e;
          line-height: 14px;
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
        }
        .timeNow {
          width: 28px;
          height: 8px;
          font-size: 8px;
          font-family: PingFang SC;
          font-weight: 500;
          color: #888888;
          margin-top: 6px;
        }
      }
      .right {
        float: left;
        margin-left: 15px;
        img {
          width: 63px;
        }
      }
    }
  }
}
</style>
